namespace STOWaybillMall.Core
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using TongTongMall.Domain.Entities;
    using TongTongMall.Domain.Repositories.Attributes;


    [Table("ProductInfo")]
    public partial class ProductInfo: AggregateRoot<long>, ISoftDelete
    {
        [Identify]
        public long ProductID { get; set; }

        public long ProductBaseID { get; set; }

        [StringLength(200)]
        public string SpecPropGroupName { get; set; }

        public string GroupIDs { get; set; }

        public bool IsDeleted { get; set; }

        public bool IsSoldOut { get; set; }

        public int Inventory { get; set; }

        [Column(TypeName = "money")]
        public decimal DefaultPrice { get; set; }

        public int? InventoryWran { get; set; }

        public DateTime CreateTime { get; set; }

        public int TotalSell { get; set; }

        public int MonthSell { get; set; }
    }
}
